package com.ruoyi.house_sale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 票据管理对象 Ticket
 * 
 * @author ruoyi
 * @date 2022-04-19
 */
public class Ticket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long ticketid;

    /** 票据本号 */
    @Excel(name = "票据本号")
    private String ticketno;

    /** 票据类型（发票，收据) */
    @Excel(name = "票据类型", readConverterExp = "票据类型（发票，收据)")
    private String tickettype;

    /** 领用人（选择用户资料） */
    @Excel(name = "领用人", readConverterExp = "选=择用户资料")
    private String useperson;

    /** 领用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usetime;

    /** 票据号起 */
    @Excel(name = "票据号起")
    private String startno;

    /** 票据号止 */
    @Excel(name = "票据号止")
    private String endno;

    /** 票据号前缀 */
    @Excel(name = "票据号前缀")
    private String prefix;

    /** 是否有效（是，否） */
    @Excel(name = "是否有效", readConverterExp = "是=，否")
    private String invalid;

    /** 购买日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buytime;

    /** 是否审核（是，否)，用完后需要审核 */
    @Excel(name = "是否审核", readConverterExp = "是否审核（是，否)，用完后需要审核")
    private String isaudit;

    /** 是否核销（是，否），核销后不能再用 */
    @Excel(name = "是否核销", readConverterExp = "是=，否")
    private String isend;

    /** 备注 */
    @Excel(name = "备注")
    private String demo;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long nextno;

    public void setTicketid(Long ticketid) 
    {
        this.ticketid = ticketid;
    }

    public Long getTicketid() 
    {
        return ticketid;
    }
    public void setTicketno(String ticketno) 
    {
        this.ticketno = ticketno;
    }

    public String getTicketno() 
    {
        return ticketno;
    }
    public void setTickettype(String tickettype) 
    {
        this.tickettype = tickettype;
    }

    public String getTickettype() 
    {
        return tickettype;
    }
    public void setUseperson(String useperson) 
    {
        this.useperson = useperson;
    }

    public String getUseperson() 
    {
        return useperson;
    }
    public void setUsetime(Date usetime) 
    {
        this.usetime = usetime;
    }

    public Date getUsetime() 
    {
        return usetime;
    }
    public void setStartno(String startno) 
    {
        this.startno = startno;
    }

    public String getStartno() 
    {
        return startno;
    }
    public void setEndno(String endno) 
    {
        this.endno = endno;
    }

    public String getEndno() 
    {
        return endno;
    }
    public void setPrefix(String prefix) 
    {
        this.prefix = prefix;
    }

    public String getPrefix() 
    {
        return prefix;
    }
    public void setInvalid(String invalid) 
    {
        this.invalid = invalid;
    }

    public String getInvalid() 
    {
        return invalid;
    }
    public void setBuytime(Date buytime) 
    {
        this.buytime = buytime;
    }

    public Date getBuytime() 
    {
        return buytime;
    }
    public void setIsaudit(String isaudit) 
    {
        this.isaudit = isaudit;
    }

    public String getIsaudit() 
    {
        return isaudit;
    }
    public void setIsend(String isend) 
    {
        this.isend = isend;
    }

    public String getIsend() 
    {
        return isend;
    }
    public void setDemo(String demo) 
    {
        this.demo = demo;
    }

    public String getDemo() 
    {
        return demo;
    }
    public void setNextno(Long nextno) 
    {
        this.nextno = nextno;
    }

    public Long getNextno() 
    {
        return nextno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ticketid", getTicketid())
            .append("ticketno", getTicketno())
            .append("tickettype", getTickettype())
            .append("useperson", getUseperson())
            .append("usetime", getUsetime())
            .append("startno", getStartno())
            .append("endno", getEndno())
            .append("prefix", getPrefix())
            .append("invalid", getInvalid())
            .append("buytime", getBuytime())
            .append("isaudit", getIsaudit())
            .append("isend", getIsend())
            .append("demo", getDemo())
            .append("nextno", getNextno())
            .toString();
    }
}
